﻿namespace CodeSHARPer.Avalondock.Pane
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Controls;
    using System.Windows;
    using CodeSHARPer.ViewModel;
    using CodeSHARPer.ViewModel.Base;
    using CodeSHARPer.ViewModel.Tools;

    class PanesStyleSelector : StyleSelector
    {
        public Style FileStyle { get; set; }

        public Style ToolsStyle { get; set; }

        public override System.Windows.Style SelectStyle(object item, System.Windows.DependencyObject container)
        {
            if (item is CodePadViewModel)
                return FileStyle;

            if (item is ToolViewModel)
                return ToolsStyle;

            return base.SelectStyle(item, container);
        }
    }
}
